package mpcs.view.skins
{

	import flash.display.Sprite;
	import flash.events.Event;
	import flash.events.MouseEvent;
	import flash.text.TextField;
	import flash.text.TextFieldAutoSize;
	import mx.controls.Label;

	public class MyMapInfoWindow extends Sprite
	{
		public var lat:TextField;
		public var lng:TextField;

		public function MyMapInfoWindow()
		{

			graphics.lineStyle(1, 0x6666FF);
			graphics.beginFill(0xFFCCFF);
			graphics.drawRect(-6, 0, 10, 8);
			graphics.endFill();
			graphics.beginFill(0xFF99CC);
			graphics.drawRect(-3, -14, 14, 12);
			graphics.endFill();
			graphics.beginFill(0xFF99FF);
			graphics.drawRect(4, -34, 20, 18);
			graphics.endFill();
			graphics.beginFill(0xFF66CC);
			graphics.drawRect(18, -60, 25, 24);
			graphics.endFill();
			graphics.beginFill(0xFF00FF);
			graphics.drawRect(44, -110, 160, 60);
			graphics.endFill();

			var me:Sprite=this;
			this.addEventListener(MouseEvent.CLICK, function(event:MouseEvent):void
			{
				me.dispatchEvent(new Event("close"));
			});

			lat=new TextField();
			lat.x=68;
			lat.autoSize=TextFieldAutoSize.CENTER;
			lat.y=-100;
			lat.textColor=0x000000;
			lat.width=15;
			this.addChild(lat);
			lat.selectable=true;

			lng=new TextField();
			lng.x=68;
			lng.autoSize=TextFieldAutoSize.CENTER;
			lng.y=-80;
			lng.textColor=0x000000;
			lng.width=15;
			this.addChild(lng);
			lng.selectable=true;

			cacheAsBitmap=true;
		}

	}

}